#!/bin/sh
cat <<EOF
Content-type: video/mp4

EOF
exec /usr/local/etc/www/cgi-bin/scripts/rtmpdump -b 60000 -q -v -p http://justin.tv -r "rtmp://199.9.255.240/app/jtv_U70tPN3XhXTjS7Ei" --jtv "54facb7577e89ac698e4b9d37c1bc22641b0a6c1:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_U70tPN3XhXTjS7Ei\", \"expiration\": 1327778534.1684749, \"geo_ip\": \"78.96.189.71\", \"server\": \"fra01-video4-2\"}" --swfUrl "http://www-cdn.jtvnw.net/widgets/live_site_player.r329614f8f42d103269040eddebadc259d6e6f74a.swf"